import json

from flask import jsonify, request, render_template

from utils.util import FlaskTool
from web import custom
import pandas as pd


@custom.route('/stock', methods=["GET"])
def get_stock_data():
    # 创建基础类

    df = pd.read_csv(r'C:\workspace\python\stock-flask\service\requests\datas\000868.csv')
    data = df.values.tolist()
    return jsonify(data)



